package com.face.server.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * Created by ryan on 2018/1/27.
 */
@Document
@Data
public class Role extends Entity{
    private String name;

    private List<String> adminId;

    private List<String> adminName;

    @DBRef
    private List<Function> functions;

    private List<String> functionList;

    @Override
    public String toString() {
        return "Role{" +
                "name='" + name + '\'' +
                ", adminId=" + adminId +
                ", adminName=" + adminName +
                ", functions=" + functions +
                '}';
    }
}
